package org.atoral.oralarithmetic;

//import com.alibaba.druid.FastsqlException;

import com.alibaba.druid.support.json.JSONUtils;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.util.Converter;
import com.fasterxml.jackson.databind.util.JSONPObject;
import org.atoral.oralarithmetic.bean.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import org.springframework.web.servlet.view.BeanNameViewResolver;
import org.springframework.web.servlet.view.ContentNegotiatingViewResolver;

@SpringBootApplication
public class OralArithmeticApplication {

    public static void main(String[] args) {

        // 获取ioc容器
        var ioc = SpringApplication.run(OralArithmeticApplication.class, args);
        // 打印所有ioc
//        for (String name : ioc.getBeanDefinitionNames()) {
//            System.out.println(name);
//        }
//       测试条件注解
//        String[] forType = ioc.getBeanNamesForType(Dog.class);
//        for (String s : forType) {
//            System.out.println(s);
//        }
//        System.out.println(forType.length);
//        测试属性绑定
//       Pig pig = ioc.getBean(Pig.class);
//        System.out.println(pig);
//        Sheep sheep = ioc.getBean(Sheep.class);
//        System.out.println(sheep);
//        Person person = ioc.getBean(Person.class);
//        System.out.println(person);

    }

}
